<template>
  <div class="q-pa-md q-gutter-sm">
    <t-btn label="Basic scroll" color="primary" @click="basic = true" />
    <t-btn label="Fixed size" color="primary" @click="fixed = true" />

    <t-dialog v-model="basic" transition-show="rotate" transition-hide="rotate">
      <t-card>
        <t-card-section>
          <div class="text-h6">Terms of Agreement</div>
        </t-card-section>

        <t-card-section class="q-pt-none">
          <p v-for="n in 15" :key="n"
            >Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum
            repellendus sit voluptate voluptas eveniet porro. Rerum blanditiis
            perferendis totam, ea at omnis vel numquam exercitationem aut, natus
            minima, porro labore.</p
          >
        </t-card-section>

        <t-card-actions align="right">
          <t-btn flat label="Decline" color="primary" v-close-popup />
          <t-btn flat label="Accept" color="primary" v-close-popup />
        </t-card-actions>
      </t-card>
    </t-dialog>

    <t-dialog v-model="fixed">
      <t-card>
        <t-card-section>
          <div class="text-h6">Terms of Agreement</div>
        </t-card-section>

        <t-separator />

        <t-card-section style="max-height: 50vh" class="scroll">
          <p v-for="n in 15" :key="n"
            >Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum
            repellendus sit voluptate voluptas eveniet porro. Rerum blanditiis
            perferendis totam, ea at omnis vel numquam exercitationem aut, natus
            minima, porro labore.</p
          >
        </t-card-section>

        <t-separator />

        <t-card-actions align="right">
          <t-btn flat label="Decline" color="primary" v-close-popup />
          <t-btn flat label="Accept" color="primary" v-close-popup />
        </t-card-actions>
      </t-card>
    </t-dialog>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        basic: ref(false),
        fixed: ref(false),
      };
    },
  };
</script>
